/*  File Name	: SockStream.cpp
 *  Author		: Pang Jiacai
 *	 E-mail		: 823960168@qq.com
 *  Created on	: 2012-4-26
 *  Description:
 */

#include "SockStream.h"

SockStream::SockStream()
{

}

SockStream::~SockStream()
{

}

int SockStream::recv(char *buf,int len,int flag)
{
	int recv_len = ::recv(this->get_handle(),buf,len,flag);
	return recv_len;
}

int SockStream::send(char *buf,int len,int flag)
{
	int send_len = ::send(this->get_handle(),buf,len,flag);
	return send_len;
}
